package com.example.noobpackage.logic.dao

import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.example.noobpackage.logic.model.ExpressData
import kotlinx.coroutines.selects.select

@Dao
interface ExpressDao {
    @Insert
    suspend fun insert(express: ExpressData): Long

    @Query("Select * from ExpressData")
    fun loadAllExpress(): LiveData<List<ExpressData>>

    @Delete
    suspend fun completeExpress(express: ExpressData)
}